/**
 * jims
 */
package com.jims.master.modules.doctor.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jims.master.common.persistence.DataEntity;

/**
 * Entity
 * @author 系统管理员
 * @version 2017-07-16
 */
public class ClinicDeathProve extends DataEntity<ClinicDeathProve> {
	
	private static final long serialVersionUID = 1L;
	private String clinicId;		// 就诊记录ID/住院记录
	private String patientId;		// 病人信息Id
	private String deathNo;		// 死亡编号
	private String degree;		// 文化程度
	private String idType;		//有效身份证件类别
	private String inoroutFlag;		// 住院/门诊
	private Date deathDate;		// 死亡时间
	private String deathLocation;		// 死亡地点
	private String gestation;		// 死亡时是否处于身份期或妊娠终止后42天内
	private String employer;		// 生前工作单位
	private String aDisease;		// 直接死亡原因
	private String aDate;		// 发病至死亡大概间隔时间
	private String bDisease;		// 引起(a)的基本或情况
	private String bDate;		// （b）发病至死亡大概间隔时间
	private String cDisease;		// 引起(b)的基本或情况
	private String cDate;		// （c）发病至死亡大概间隔时间
	private String dDisease;		// 引起(c)的基本或情况
	private String dDate;		// （d）发病至死亡大概间隔时间
	private String otherDisease;		// 其他疾病诊断
	private String otherDate;		// 其他发病至死亡大概间隔时间
	private String topUnit;		// 生前主要疾病最后诊断单位
	private String topBasis;		// 生前主要疾病最高诊断依据
	private Date writeDate;		// 填写日期
	private String orgId;		// 机构ID
	private PatMasterIndex patMasterIndex;
	private ClinicMaster clinicMaster;
	
	public ClinicDeathProve() {
		super();
	}

	public ClinicDeathProve(String id){
		super(id);
	}

	@Length(min=1, max=64, message="就诊记录ID/住院记录长度必须介于 1 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=1, max=64, message="病人信息Id长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=0, max=100, message="文化程度长度必须介于 0 和 100 之间")
	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}

	public String getDeathNo() {
		return deathNo;
	}

	public void setDeathNo(String deathNo) {
		this.deathNo = deathNo;
	}

	@Length(min=1, max=1, message="住院/门诊长度必须介于 1 和 1 之间")
	public String getInoroutFlag() {
		return inoroutFlag;
	}

	public void setInoroutFlag(String inoroutFlag) {
		this.inoroutFlag = inoroutFlag;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getDeathDate() {
		return deathDate;
	}

	public void setDeathDate(Date deathDate) {
		this.deathDate = deathDate;
	}
	
	@Length(min=0, max=200, message="死亡地点长度必须介于 0 和 200 之间")
	public String getDeathLocation() {
		return deathLocation;
	}

	public void setDeathLocation(String deathLocation) {
		this.deathLocation = deathLocation;
	}
	
	@Length(min=0, max=1, message="死亡时是否处于身份期或妊娠终止后42天内长度必须介于 0 和 1 之间")
	public String getGestation() {
		return gestation;
	}

	public void setGestation(String gestation) {
		this.gestation = gestation;
	}
	
	@Length(min=0, max=200, message="生前工作单位长度必须介于 0 和 200 之间")
	public String getEmployer() {
		return employer;
	}

	public void setEmployer(String employer) {
		this.employer = employer;
	}

	public String getaDisease() {
		return aDisease;
	}

	public void setaDisease(String aDisease) {
		this.aDisease = aDisease;
	}

	public String getaDate() {
		return aDate;
	}

	public void setaDate(String aDate) {
		this.aDate = aDate;
	}

	public String getbDisease() {
		return bDisease;
	}

	public void setbDisease(String bDisease) {
		this.bDisease = bDisease;
	}

	public String getbDate() {
		return bDate;
	}

	public void setbDate(String bDate) {
		this.bDate = bDate;
	}

	public String getcDisease() {
		return cDisease;
	}

	public void setcDisease(String cDisease) {
		this.cDisease = cDisease;
	}

	public String getcDate() {
		return cDate;
	}

	public void setcDate(String cDate) {
		this.cDate = cDate;
	}

	public String getdDisease() {
		return dDisease;
	}

	public void setdDisease(String dDisease) {
		this.dDisease = dDisease;
	}

	public String getdDate() {
		return dDate;
	}

	public void setdDate(String dDate) {
		this.dDate = dDate;
	}

	public String getOtherDisease() {
		return otherDisease;
	}

	public void setOtherDisease(String otherDisease) {
		this.otherDisease = otherDisease;
	}

	public String getOtherDate() {
		return otherDate;
	}

	public void setOtherDate(String otherDate) {
		this.otherDate = otherDate;
	}

	public String getTopUnit() {
		return topUnit;
	}

	public void setTopUnit(String topUnit) {
		this.topUnit = topUnit;
	}

	@Override
	public String getOrgId() {
		return orgId;
	}

	@Override
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getTopBasis() {
		return topBasis;
	}

	public void setTopBasis(String topBasis) {
		this.topBasis = topBasis;
	}

	public String getIdType() {
		return idType;
	}

	public void setIdType(String idType) {
		this.idType = idType;
	}

	public PatMasterIndex getPatMasterIndex() {
		return patMasterIndex;
	}

	public void setPatMasterIndex(PatMasterIndex patMasterIndex) {
		this.patMasterIndex = patMasterIndex;
	}

	public ClinicMaster getClinicMaster() {
		return clinicMaster;
	}

	public void setClinicMaster(ClinicMaster clinicMaster) {
		this.clinicMaster = clinicMaster;
	}

	public Date getWriteDate() {
		return writeDate;
	}

	public void setWriteDate(Date writeDate) {
		this.writeDate = writeDate;
	}
}